/* 登录页面样式 */
.login-container {
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-box {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
}

.login-box h1 {
    color: #4a6cf7;
    text-align: center;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
}

.form-group input {
    width: 90%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    margin: 0 auto;
    display: block;
}

button[type="submit"] {
    width: 100%;
    padding: 10px;
    background-color: #4a6cf7;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button[type="button"] {
    width: 15%;
}

button[type="submit"]:hover {
    background-color: #3a5bd9;
}
.error-message {
    color: #dc3545; /* 红色错误提示 */
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
    text-align: center;
}

/* 首页样式 */
.header {
    background: white;
    padding: 1rem 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.role-badge {
    background: #4a6cf7;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
}

.logout-btn {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

.logout-btn:hover {
    color: #4a6cf7;
}

.content {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.user-details {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-top: 1rem;
}
/* 添加到style.css底部 */
.module-entries {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
}

.module-btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: #4a6cf7;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.module-btn:hover {
    background-color: #3a5bd9;
}